William Hua [Thu, 22 Oct 2015 03:36:50 +0000 (23:36 -0400)]
gdkborder: add GdkBorder to gdktypes.h
William Hua [Wed, 23 Sep 2015 17:16:31 +0000 (13:16 -0400)]
gdkwindow: move GdkWindowTypeHint to gdktypes.h
Matthias Clasen [Tue, 15 Dec 2015 15:00:21 +0000 (10:00 -0500)]
gdk: Add gdk_drag_drop_done to the docs
Matthias Clasen [Tue, 15 Dec 2015 14:48:16 +0000 (09:48 -0500)]
Complete docs for gtk_stack_get_interpolate_size
Matthias Clasen [Tue, 15 Dec 2015 11:49:35 +0000 (06:49 -0500)]
paned: Add a deprecation note
Matthias Clasen [Tue, 15 Dec 2015 11:29:30 +0000 (06:29 -0500)]
checkbutton: Remove dead code
Matthias Clasen [Tue, 15 Dec 2015 11:27:52 +0000 (06:27 -0500)]
button box: Deprecate style properties
These can all be replaced by standard CSS properties.
Matthias Clasen [Sun, 13 Dec 2015 00:41:40 +0000 (19:41 -0500)]
flowbox: convert to gadgets
Matthias Clasen [Thu, 10 Dec 2015 06:39:26 +0000 (01:39 -0500)]
flowbox: Convert child to gadgets
Matthias Clasen [Sat, 12 Dec 2015 04:48:34 +0000 (23:48 -0500)]
listbox: Convert to gadgets
Matthias Clasen [Thu, 10 Dec 2015 05:43:58 +0000 (00:43 -0500)]
listbox: Convert rows to gadgets
Matthias Clasen [Wed, 9 Dec 2015 05:17:51 +0000 (00:17 -0500)]
paned: Convert to gadgets
Matthias Clasen [Wed, 9 Dec 2015 04:03:38 +0000 (23:03 -0500)]
stack: Convert to gadgets
Matthias Clasen [Wed, 9 Dec 2015 02:43:16 +0000 (21:43 -0500)]
Adwaita: Update separator toolitem styling
Don't set a background for these, since we now draw background.
Matthias Clasen [Wed, 9 Dec 2015 02:14:00 +0000 (21:14 -0500)]
separator toolitem: Convert to gadgets
Matthias Clasen [Tue, 8 Dec 2015 21:51:21 +0000 (16:51 -0500)]
css node: Warn more
gtk_css_node_insert_before/after can easily create cycles
which later lead to stack overflows. Even if we're not
catching all cycles here, at least we can detect obviously
invalid arguments, such as inserting a node next to itself.
Matthias Clasen [Tue, 15 Dec 2015 05:10:16 +0000 (00:10 -0500)]
Adwaita: Remove nonsensical expander theming
No red backgrounds, please.
Matthias Clasen [Tue, 8 Dec 2015 15:04:03 +0000 (10:04 -0500)]
expander: Convert to gadgets
As part of the conversion, add another CSS node for the title
area including the arrow and the label.
Matthias Clasen [Tue, 8 Dec 2015 03:57:34 +0000 (22:57 -0500)]
revealer: Add CSS node docs
Matthias Clasen [Tue, 8 Dec 2015 03:11:52 +0000 (22:11 -0500)]
stackswitcher: Stop hardcoding 100px width
We can now set a min-width in the theme, so we don't have to
hardcode the size request here anymore.
https://bugzilla.gnome.org/show_bug.cgi?id=726371
Matthias Clasen [Sun, 6 Dec 2015 19:27:40 +0000 (14:27 -0500)]
gadget: Add some documentation
Matthias Clasen [Sun, 6 Dec 2015 06:53:29 +0000 (01:53 -0500)]
box: Trivial doc change
All the CSS sections are named CSS nodes, so do the same here.
Matthias Clasen [Sun, 6 Dec 2015 06:52:45 +0000 (01:52 -0500)]
grid: Convert to gadgets
Matthias Clasen [Sun, 6 Dec 2015 04:59:38 +0000 (23:59 -0500)]
headerbar: Convert to gadgets
Matthias Clasen [Sun, 6 Dec 2015 04:10:52 +0000 (23:10 -0500)]
actionbar: Convert to gadgets
This is a nice example of a trivial container conversion.
Matthias Clasen [Tue, 15 Dec 2015 04:35:45 +0000 (23:35 -0500)]
Adwaita: No padding for image buttons in popovers
Matthias Clasen [Sat, 5 Dec 2015 06:42:41 +0000 (01:42 -0500)]
modelbutton: Port to gadgets
Matthias Clasen [Fri, 4 Dec 2015 12:52:18 +0000 (07:52 -0500)]
gadget: Be more forgiving to size inconsistencies
Instead of asserting if we hit negative content sizes,
warn and continue. This is easier to work with in this
transition period.
Matthias Clasen [Tue, 15 Dec 2015 02:43:20 +0000 (21:43 -0500)]
radiobutton: Port radio buttons to gadgets
This was already mostly done by inheritance from GtkCheckButton.
To complete it, stop using the draw_indicator vfunc for radio
buttons, and instead make the indicator gadget draw either a
check or radio.
Matthias Clasen [Fri, 4 Dec 2015 05:34:52 +0000 (00:34 -0500)]
check button: Convert to gadgets
Use a gadget for the button, and for the indicator.
A complication here is that GtkCheckButton (and
GtkRadioButton) have a totally different appearance
depending on the ::draw-indicator property. If an
indicator is not required, we just reuse the
GtkButton gadget.
This mostly works; some minor sizing issues left, e.g. cranking
up the indicator-size causes the checkbutton grid in testgtk
to overlap.
Matthias Clasen [Fri, 4 Dec 2015 02:56:25 +0000 (21:56 -0500)]
button: Convert to gadgets
Matthias Clasen [Thu, 3 Dec 2015 19:22:50 +0000 (14:22 -0500)]
label: Convert to gadgets
This removes some hairy code handling with borders and padding,
which may or may not be correct. The examples in testheightforwidth
all continue to work, and min-width now works for labels.
Matthias Clasen [Mon, 14 Dec 2015 21:10:54 +0000 (16:10 -0500)]
Adwaita: Update color swatch styling
The adjustments here are provisional and need an artistic eye.
Matthias Clasen [Mon, 14 Dec 2015 21:10:28 +0000 (16:10 -0500)]
colorswatch: Convert to gadgets
Use gadgets for the widget and the overlay.
Matthias Clasen [Mon, 14 Dec 2015 20:57:38 +0000 (15:57 -0500)]
widget: Deprecate some style properties
Deprecate the ::wide-separators and ::separator-width/height
style properties.
Matthias Clasen [Mon, 14 Dec 2015 20:56:56 +0000 (15:56 -0500)]
Adwaita: Update separator styling
Separators no longer draw a line with the foreground color,
but instead just draw background.
Matthias Clasen [Mon, 14 Dec 2015 20:56:29 +0000 (15:56 -0500)]
separator: port to gadgets
As part of this, stop using custom rendering code for wide
and non-wide separators.
Matthias Clasen [Thu, 26 Nov 2015 19:59:57 +0000 (14:59 -0500)]
spinner: Use a gadget
This gives us min-width/height support. Currently, the spinner
still has a hardcoded minimum size of 16 and doesn't grow beyond
32. We may want to revisit that at some point.
Matthias Clasen [Tue, 24 Nov 2015 12:22:52 +0000 (07:22 -0500)]
progressbar: Convert to gadgets
Use gadgets for the text, the trough and the progress.
Benjamin Otte [Mon, 14 Dec 2015 04:29:35 +0000 (05:29 +0100)]
iconhelper: Queue resize on invalidation
When things change in the iconhelper, queue a resize on the owner widget
so that it automatically resizes.
Only do this for iconhelpers that are used as gadgets though, not for
temporary helpers - and to check this, check if the node is transient.
Benjamin Otte [Mon, 14 Dec 2015 04:22:08 +0000 (05:22 +0100)]
entry: Turn icons into gadgets
Benjamin Otte [Fri, 20 Nov 2015 00:17:06 +0000 (01:17 +0100)]
spinbutton: Port the buttons to gadgets
Benjamin Otte [Mon, 14 Dec 2015 03:00:31 +0000 (04:00 +0100)]
iconhelper: Finish gadget conversion
Implement missing vfuncs
Benjamin Otte [Mon, 14 Dec 2015 01:33:21 +0000 (02:33 +0100)]
rendericon: Restore cairo matrix after rendering
Benjamin Otte [Fri, 11 Dec 2015 14:12:19 +0000 (15:12 +0100)]
iconhelper: Handle invalidation
When CSS, direction or scale factor change, handle the invalidation
inside the iconhelper.
This way the widgets using them don't have to.
Benjamin Otte [Wed, 9 Dec 2015 17:32:05 +0000 (18:32 +0100)]
iconhelper: Use the gadget's node
... instead of looking at the widget's style context.
This removes all calls to the style context.
Benjamin Otte [Wed, 9 Dec 2015 17:25:36 +0000 (18:25 +0100)]
iconhelper: Require passing a cssnode to the constructor
Note that we don't use it yet.
Benjamin Otte [Wed, 9 Dec 2015 13:07:07 +0000 (14:07 +0100)]
iconhelper: Use the gadget's owner property
Don't keep the owner widget ourselves.
Benjamin Otte [Wed, 9 Dec 2015 13:01:46 +0000 (14:01 +0100)]
iconhelper: Turn into gadget
This is just the basic conversion to inheriting from
GTK_TYPE_CSS_GADGET.
Matthias Clasen [Tue, 17 Nov 2015 03:55:01 +0000 (22:55 -0500)]
image: Port to gadgets
Benjamin Otte [Wed, 18 Nov 2015 00:47:53 +0000 (01:47 +0100)]
box: Port to gadgets
Benjamin Otte [Wed, 18 Nov 2015 00:47:16 +0000 (01:47 +0100)]
container: Split out a function
Computing the clip for all children is something I want to do in other
places.
Benjamin Otte [Mon, 9 Mar 2015 05:16:50 +0000 (06:16 +0100)]
switch: Port to gadgets
Benjamin Otte [Wed, 9 Sep 2015 17:15:01 +0000 (19:15 +0200)]
gadget: Add GtkCssCustomGadget
The thing you use when you want to custom-do everything.
Benjamin Otte [Tue, 8 Sep 2015 22:13:11 +0000 (00:13 +0200)]
gadget: Add the concept of a "gadget"
A gadget is halfway between a widget and a CSS node. It's supposed to
provide the minimum convenicence around CSS nodes until we've figured
out how to integrate them with widgets.
Benjamin Otte [Thu, 13 Dec 2012 02:10:25 +0000 (03:10 +0100)]
css: Add min-width/height CSS properties
Benjamin Otte [Wed, 9 Dec 2015 17:20:06 +0000 (18:20 +0100)]
treeview: Reposition dnd button css node properly
After the drag ends, the button node went to the wrong place and then
looked like a regular button. Fix that.
Chun-wei Fan [Tue, 15 Dec 2015 07:37:33 +0000 (15:37 +0800)]
MSVC builds: Build more tools in gtk/
Build the gtk-update-icon-cache, gtk-builder-tool and gtk-query-settings
tools and run gtk-update-icon-cache as part of the post-build
"installation" process.
Pointed out (and reminded) by Paolo Borelli in bug 759436 that we should
build, "install" and run gtk-update-icon-cache in the MSVC builds as well.
Benjamin Otte [Tue, 15 Dec 2015 00:14:57 +0000 (01:14 +0100)]
inspector: Fix quick-fix
Constructing GtkCssStyleChange objects without styles is forbidden, so
don't do it. Instead untangle the callback from the actual update
function and call that untangled function directly.
Benjamin Otte [Tue, 15 Dec 2015 00:07:03 +0000 (01:07 +0100)]
cssnode: Clear cache if reusing style
When we reuse styles that didn't change across changes to the source
CSS, make sure we clear the caches. Otherwise child nodes will pick up
styles from the old source CSS.
Piotr Drąg [Mon, 14 Dec 2015 23:51:33 +0000 (00:51 +0100)]
Updated POTFILES.in
Carlos Garnacho [Mon, 14 Dec 2015 14:44:29 +0000 (15:44 +0100)]
win32: Use GdkSeatDefault to implement GdkSeat
Carlos Garnacho [Mon, 14 Dec 2015 14:44:15 +0000 (15:44 +0100)]
quartz: Use GdkSeatDefault to implement GdkSeat
Carlos Garnacho [Mon, 14 Dec 2015 14:43:54 +0000 (15:43 +0100)]
broadway: Use GdkSeatDefault to Implement GdkSeat
Carlos Garnacho [Wed, 9 Dec 2015 11:56:26 +0000 (12:56 +0100)]
wayland: Improve creation of windowing surface roles
We no longer need a grabbed seat, instead we'll just use the default
seat if this happens, not without first warning and recommending
gdk_seat_grab() for the operation.
https://bugzilla.gnome.org/show_bug.cgi?id=759309
Carlos Garnacho [Wed, 9 Dec 2015 11:55:39 +0000 (12:55 +0100)]
wayland: Replace deprecated functions
We can just gdk_seat_ungrab() here.
https://bugzilla.gnome.org/show_bug.cgi?id=759309
Carlos Garnacho [Wed, 9 Dec 2015 11:29:52 +0000 (12:29 +0100)]
gdk: Deprecate GdkDeviceManager and gdk_device_grab/ungrab()
GdkSeat is now the preferred way to deal with input devices and grabs.
https://bugzilla.gnome.org/show_bug.cgi?id=759309
Carlos Garnacho [Wed, 9 Dec 2015 11:49:43 +0000 (12:49 +0100)]
wayland: Emit cancelled on touchpoint used on window dragging/moving
This allows GDK to unset the grab itself. Also, make sure we unset
the "pointer emulating" touch on the device if this is the
pointer emulating sequence.
https://bugzilla.gnome.org/show_bug.cgi?id=759309
Carlos Garnacho [Wed, 9 Dec 2015 11:46:08 +0000 (12:46 +0100)]
wayland: Unset "pointer emulating" touch on wl_touch.cancel
And emit the corresnponding leave event on its master pointer.
https://bugzilla.gnome.org/show_bug.cgi?id=759309
Carlos Garnacho [Wed, 9 Dec 2015 11:39:43 +0000 (12:39 +0100)]
gdk: Manage GDK_TOUCH_CANCEL events on gdk_windowing_got_event()
These events must get active/implicit grabs undone, and can be done
on client-side code.
https://bugzilla.gnome.org/show_bug.cgi?id=759309
Carlos Garnacho [Wed, 9 Dec 2015 11:42:33 +0000 (12:42 +0100)]
wayland: Make gdk_wayland_device_get_focus() work on touch
So we can figure out the focus for the master device.
https://bugzilla.gnome.org/show_bug.cgi?id=759309
Carlos Garnacho [Wed, 9 Dec 2015 11:25:10 +0000 (12:25 +0100)]
GdkDisplay: Add ::seat-added/removed signals
These will be emitted as seats come and go.
https://bugzilla.gnome.org/show_bug.cgi?id=759309
Carlos Garnacho [Thu, 26 Nov 2015 18:40:56 +0000 (19:40 +0100)]
wayland: Add GdkSeat implementation
GdkWaylandDeviceData conceptually gathers the data that belongs to
a seat, so it's been renamed (although the old typedef stays, plenty
of refactoring is due here...).
The methods in GdkSeatClass have also been implemented, the most
remarkable is ::grab, which ensures the grab is performed on all
the relevant "master" devices.
https://bugzilla.gnome.org/show_bug.cgi?id=759309
Carlos Garnacho [Thu, 26 Nov 2015 18:56:41 +0000 (19:56 +0100)]
GtkTreeView: Use gdk_seat_grab()
https://bugzilla.gnome.org/show_bug.cgi?id=759309
Carlos Garnacho [Thu, 26 Nov 2015 18:56:25 +0000 (19:56 +0100)]
GtkNotebook: Use gdk_seat_grab()
https://bugzilla.gnome.org/show_bug.cgi?id=759309
Carlos Garnacho [Thu, 26 Nov 2015 18:55:45 +0000 (19:55 +0100)]
GtkEntryCompletion: Use gdk_seat_grab()
https://bugzilla.gnome.org/show_bug.cgi?id=759309
Carlos Garnacho [Thu, 26 Nov 2015 18:55:15 +0000 (19:55 +0100)]
GtkComboBox: Use gdk_seat_grab()
https://bugzilla.gnome.org/show_bug.cgi?id=759309
Carlos Garnacho [Thu, 26 Nov 2015 18:54:54 +0000 (19:54 +0100)]
GtkMenu: Use gdk_seat_grab()
https://bugzilla.gnome.org/show_bug.cgi?id=759309
Carlos Garnacho [Thu, 26 Nov 2015 18:54:31 +0000 (19:54 +0100)]
GtkCellRendererAccel: Use gdk_seat_grab()
https://bugzilla.gnome.org/show_bug.cgi?id=759309
Carlos Garnacho [Thu, 26 Nov 2015 18:54:01 +0000 (19:54 +0100)]
GtkButton: Use gdk_seat_grab()
https://bugzilla.gnome.org/show_bug.cgi?id=759309
Carlos Garnacho [Thu, 26 Nov 2015 18:53:36 +0000 (19:53 +0100)]
x11: Use GdkSeatDefault to implement GdkSeat
https://bugzilla.gnome.org/show_bug.cgi?id=759309
Carlos Garnacho [Mon, 14 Dec 2015 19:24:40 +0000 (20:24 +0100)]
x11: Use gdk_event_set_device() consistently
Move the variable definitions above the function, and use those
throughout all branches of the event handling switch.
Carlos Garnacho [Thu, 26 Nov 2015 18:53:09 +0000 (19:53 +0100)]
GdkEvent: Add GdkSeat getter and internal setter
https://bugzilla.gnome.org/show_bug.cgi?id=759309
Carlos Garnacho [Thu, 26 Nov 2015 18:52:23 +0000 (19:52 +0100)]
GdkDisplay: Add GdkSeat getters
https://bugzilla.gnome.org/show_bug.cgi?id=759309
Carlos Garnacho [Thu, 26 Nov 2015 18:50:57 +0000 (19:50 +0100)]
GdkDevice: Add GdkSeat property and getter
https://bugzilla.gnome.org/show_bug.cgi?id=759309
Carlos Garnacho [Thu, 26 Nov 2015 18:49:10 +0000 (19:49 +0100)]
gdk: Add GdkSeatDefault
https://bugzilla.gnome.org/show_bug.cgi?id=759309
Carlos Garnacho [Thu, 26 Nov 2015 18:47:38 +0000 (19:47 +0100)]
gdk: Add GdkSeat
https://bugzilla.gnome.org/show_bug.cgi?id=759309
Carlos Garnacho [Fri, 11 Dec 2015 12:16:13 +0000 (13:16 +0100)]
x11: Use client pointer as default core pointer for gtk+2 API
There is no need to fiddle with the master devices list.
https://bugzilla.gnome.org/show_bug.cgi?id=759323
Lucas Baudin [Sun, 13 Dec 2015 18:24:50 +0000 (19:24 +0100)]
wayland: recursively search for the settings schema.
On some systems, the gtk settings are not used properly for wayland.
Indeed, g_settings_schema_source_get_default is used, and as the docs says it,
"all lookups performed against the default source should probably be done
recursively.".
https://bugzilla.gnome.org/show_bug.cgi?id=759409
Dušan Kazik [Mon, 14 Dec 2015 10:53:55 +0000 (10:53 +0000)]
Updated Slovak translation
Piotr Drąg [Mon, 14 Dec 2015 00:45:11 +0000 (01:45 +0100)]
Updated POTFILES.in
Matthias Clasen [Sun, 13 Dec 2015 23:24:41 +0000 (18:24 -0500)]
dnd: Cleanups
Remove some now unused includes and dead code, and rename
gtk_drag_set_icon_window to gtk_drag_set_icon_widget_internal,
since it is no longer restricted to toplevel windows.
Matthias Clasen [Sun, 13 Dec 2015 21:01:05 +0000 (16:01 -0500)]
testdnd2: Add some verbosity
This makes it easier to see that we're missing some signals
under Wayland.
Matthias Clasen [Mon, 7 Dec 2015 20:08:27 +0000 (15:08 -0500)]
dnd: Stop doing cancel animation in GTK+
Under Wayland, the compositor does it, so there is no need
for us to move the window ourselves. For X11, we are now
doing the animation from the X11 backend. Trigger that by
calling gdk_drag_drop_done().
What changes here is that we have to keep the icon_window
alive for as long as the drag context exists. Use a weak
reference to do so.
Matthias Clasen [Mon, 7 Dec 2015 23:28:06 +0000 (18:28 -0500)]
x11: Implement drag cancel animation
Showing the drag cancel animation can be done in the X11
drag context implementation now that we hold the drag
window there, and have the start coordinates.
Since we can't control if and when the application destroys
the drag widget, we take a snapshot of the window contents
and display that during the animation. This should be good
enough for all practical purposes.
Matthias Clasen [Mon, 7 Dec 2015 20:07:13 +0000 (15:07 -0500)]
gdk: Add gdk_drag_drop_done
This will allow us to move the drag cancel animation to GDK.
For now, it does nothing.
Matthias Clasen [Mon, 7 Dec 2015 20:07:54 +0000 (15:07 -0500)]
x11: Store drag start coordinates
These will be used in later commits.
Matthias Clasen [Mon, 7 Dec 2015 19:21:20 +0000 (14:21 -0500)]
dnd: Pass start coordinates when creating the drag context
This will be used in subsequent commits.
Matthias Clasen [Mon, 7 Dec 2015 18:47:45 +0000 (13:47 -0500)]
gdk: Allow passing the start coordinates in drag_begin
Add a variant of gdk_drag_begin that takes the start position
in addition to the device. All backend implementation have been
updated to accept (and ignore) the new arguments.
Subsequent commits will make use of the data in some backends.
Benjamin Otte [Sun, 13 Dec 2015 15:02:34 +0000 (16:02 +0100)]
cssnode: Set new style if it's animated
In commit
2c613166771ea9118ebda91c311f11b3462330fb we avoided emitting
the style-changed signal if no CSS property changed.
Unfortunately, this also caused CSS styles to not be updated when
animations started if those animations did not change any CSS value
immediately. In those cases the animation would just never start.
The obvious example was the spinner.